import request from '@/utils/request'
// 新增学员
export function addStudent(data) {
    return request({
        url: '/admin/customer/user',
        method: 'post',
        data
    })
}
// 学员分页
export function pagingStudent(data) {
    return request({
        url: '/admin/customer/user/paging',
        method: 'post',
        data
    })
}

// 学员详情
export function getStudentDetail(id) {
    return request({
        url: '/admin/customer/user/' + id,
        method: 'get',
    })
}
// 修改学员
export function editStudent(data) {
    return request({
        url: '/admin/customer/user',
        method: 'put',
        data
    })
}
// 批量删除学员
export function delStudent(data) {
	return request({
		url: '/admin/customer/user/remove',
		method: 'delete',
		data
	})
}
// 学员重置密码
export function resetStudentPassword(id) {
	return request({
		url: '/admin/customer/user/rePassword/' + id,
		method: 'post',
	})
}
// 学员禁用启用
export function disableStudent(data) {
	return request({
		url: '/admin/customer/user/disable',
		method: 'put',
		data
	})
}
// 学员导入
export function importStudent(data) {
	return request({
		url: '/admin/customer/user/import',
		method: 'post',
		data
	})
}
// 学员导出
export function exportStudent(data) {
	return request({
		url: '/admin/customer/user/export',
		method: 'post',
		data
	})
}
